import java.io.Serializable;


public abstract class Message implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected byte type;
	protected int length;
	protected byte[] payload;

	public abstract Byte getType();

	protected abstract void setType(Byte type);

	public abstract int getLength();

	protected abstract void setLength(int length);

	public abstract byte[] getPayload();

	public abstract void setPayload(byte[] payload);
	
	public String toString(){
		return getClass().getName();
	}
}
